home *** CD-ROM | disk | FTP | other *** search
- Path: linux.nildram.co.uk!usenet
- From: colin@greench.co.uk (Colin Wray)
- Newsgroups: comp.lang.c
- Subject: Re: A question on for loop..
- Date: Sat, 09 Mar 1996 19:08:26 GMT
- Organization: Greenchurch Software Ltd
- Message-ID: <4hslah$jvq@linux.nildram.co.uk>
- References: <4hn80a$98q@male.EBay.Sun.COM>
- NNTP-Posting-Host: ppp8.nildram.co.uk
- X-Newsreader: Forte Free Agent 1.0.82
-
- murali@sooraj.ebay.sun.com (Murali Chari) wrote:
-
- >Hi,
-
- >In the following piece of code:
-
- >for(i=0;i< 20; i++)
-
- >{
-
-
- >
- > if(condition==FALSE)
- > continue;
-
-
-
-
- >}
-
- >Let us assume i=10 before it entered the loop.
- >The condition was false. So the continue statement
- >got executed.
-
- >Will control now go to the third statement in the for loop?
- >i.e. will i be incremented by 1 and again tested for the condition?
-
- >Thanx
-
- >Murali
-
- Quite simply - Yes.
- But why not put a printf call in the loop, and watch all the
- variables.
-
- -Colin
-
-